﻿namespace Pumpkin.FrameBase.BaseModule
{
    public class BaseComponent : IModuleComponent
    {
        private IFrameModule module_;
        public void SetModule(IFrameModule module)
        {
            module_ = module;
        }

        public void Init()
        {
            var globalObj = GlobalConfigs.Instance.GetGlobalObject();
            globalObj.AddComponent<CoroutineManager>();
            module_.OnLoaded();
        }
    }
}
